<!DOCTYPE html>
<html lang="en" ng-app="test">
<head>
	<meta charset="UTF-8">
	<title>angularjs_路由</title>
</head>
<body>
	<div>标题</div>
	<ng-view></ng-view>
</body>
<script type="text/javascript" src="angular.min.js"></script>
<script type="text/javascript" src="angular-route.min.js"></script>
<script type="text/javascript">
	// 路由操作
	//test模块下需要使用路由模块，而路由操作并不包含于angular.min.js，，，需要下载，
	var app = angular.module("test",["ngRoute"]);
	//配置路由信息
	app.config(function($routeProvider){
		$routeProvider.when("/A",{templateUrl:"templateA.html"});
		$routeProvider.when("/B",{templateUrl:"templateB.html"});
		$routeProvider.otherWise({templateUrl:"templateC.html"});
	});


</script>
</html>